package com.kevis.zhunblog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kevis.zhunblog.core.entities.RolePowerEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * @Entity com.kevis.zhunblog.core.entities.RolePowerEntity
 */
@Mapper
public interface RolePowerMapper extends BaseMapper<RolePowerEntity> {
    int deleteByPowerId(String powerId);

    List<Integer> getRoleByUrl(String url);

    Set<Integer> getRolesByUrlMenuCode(String url, String menuCode);

    Set<Integer> getRoleByPowerId(Integer powerId);
    
    int deleteByRoleId(Integer roleId);

    List<RolePowerEntity> selectByRoleId(Integer roleId);

    int batchInsert(List<RolePowerEntity> sysRolePowers);
}




